home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / LINUX / LOCKD / BIND.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  1KB  |  44 lines

  1. /*
  2.  * linux/include/linux/lockd/bind.h
  3.  *
  4.  * This is the part of lockd visible to nfsd and the nfs client.
  5.  *
  6.  * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de>
  7.  */
  8.  
  9. #ifndef LINUX_LOCKD_BIND_H
  10. #define LINUX_LOCKD_BIND_H
  11.  
  12. #include <linux/lockd/nlm.h>
  13.  
  14. /* Dummy declarations */
  15. struct svc_rqst;
  16. struct knfs_fh;
  17. struct svc_client;        /* opaque type */
  18.  
  19. /*
  20.  * This is the set of functions for lockd->nfsd communication
  21.  */
  22. struct nlmsvc_binding {
  23.     void            (*exp_readlock)(void);
  24.     void            (*exp_unlock)(void);
  25.     struct svc_client *    (*exp_getclient)(struct sockaddr_in *);
  26.     u32            (*fopen)(struct svc_rqst *,
  27.                         struct knfs_fh *,
  28.                         struct file *);
  29.     void            (*fclose)(struct file *);
  30.     void            (*detach)(void);
  31. };
  32.  
  33. extern struct nlmsvc_binding *    nlmsvc_ops;
  34.  
  35. /*
  36.  * Functions exported by the lockd module
  37.  */
  38. extern void    nlmsvc_invalidate_client(struct svc_client *clnt);
  39. extern int    nlmclnt_proc(struct inode *, int, struct file_lock *);
  40. extern int    lockd_up(void);
  41. extern void    lockd_down(void);
  42.  
  43. #endif /* LINUX_LOCKD_BIND_H */
  44.